package com.qfedu.mbti.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户日志表(UserLog)表实体类
 *
 * @author makejava
 * @since 2024-11-04 11:43:41
 */
@Data
@NoArgsConstructor
@TableName("t_user_log")
public class UserLog extends Model<UserLog> {
    //序号，主键
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户ID
    private Integer uid;
    //操作类型
    private String type;
    //操作内容
    private String info;
    //创建时间
    private Date createTime;

    public UserLog(Integer uid, String type, String info) {
        this.uid = uid;
        this.type = type;
        this.info = info;
        this.createTime=new Date();
    }
}